<?php
/**
 * Created by PhpStorm.
 * User: Jerry
 * Date: 2017/1/18
 * Time: 15:08
 */

namespace YMApi\Model;


use Think\Model;

/**
 * Class SeminarBagModel
 * @package SDXApi\Model
 */
class SeminarTemplateBagModel extends Model
{
	/**
	 * @var string
	 */
	protected $tableName = 'seminar_template_bag';

	/**
	 * Created by Jerry
	 * @param $templateId
	 * @return bool|mixed
	 */
	public function get_seminar_template_bag_by_id($templateId)
	{
		if (empty($templateId)) {
			return false;
		}

		$where = array(
			'template_id'	=>	$templateId,
		);

		return $this->where($where)->find();
	}
}